package com.vr.xuecheng.search.service;

import com.vr.xuecheng.search.dto.SearchParams;
import com.vr.xuecheng.search.model.CourseIndex;
import com.vr.xuecheng.search.vo.SearchCoursePageVO;

/**
 * @author hzh
 * @date 2025/03/22
 */
public interface ICourseIndexService {
    boolean addCourseIndex(CourseIndex courseIndex);

    /**
     * @param searchParams 搜索参数
     * @return {@code SearchCoursePageVO } 结果
     * 从es中搜索课程
     */
    SearchCoursePageVO searchCoursePage(SearchParams searchParams);
}
